const Router = require("koa-router");
const router = new Router({ prefix: "/geo" });
const GeoController = require("../controller/GeoController");

// ip定位
router.get("/position", GeoController.position);

// 获取省份
router.get("/province", GeoController.province);

// 根据id来获取对应省份下的所有城市
router.get("/province/:id", GeoController.Cityid);

// 获取所有城市
router.get("/city", GeoController.city);

module.exports = router;
